LocalAdaptiveBinarize
LocalAdaptiveBinarize[image,r] creates a binary image from image by replacing values above the mean of the range-r neighborhood with 1 and others with 0.
LocalAdaptiveBinarize[image,r,{α,β,γ}] replaces values above α μ+β σ+γ with 1 and others with 0, where μ and σ are the local mean and standard deviation.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.